package com.threeox.httplibrary.builder;

import com.threeox.httplibrary.request.RequestCall;
import com.threeox.httplibrary.request.OtherRequest;

import okhttp3.RequestBody;

/**
 *
 * @ClassName: OtherRequestBuilder
 *
 * @Description: Todo(DELETE、PUT、PATCH等其他方法构造器)
 *
 * @author 赵屈犇
 *
 * @date 创建时间:2016/12/21 11:24
 *
 * @version 1.0
 */
public class OtherRequestBuilder extends OkHttpRequestBuilder<OtherRequestBuilder> {

    private RequestBody requestBody;
    private String method;
    private String content;

    public OtherRequestBuilder(String method) {
        this.method = method;
    }

    @Override
    public RequestCall build() {
        return new OtherRequest(requestBody, content, method, url, tag, params, headers,id).build();
    }

    public OtherRequestBuilder requestBody(RequestBody requestBody) {
        this.requestBody = requestBody;
        return this;
    }

    public OtherRequestBuilder requestBody(String content) {
        this.content = content;
        return this;
    }


}
